/**
 * package: seeds
 * author: zhaiyujin
 * description:
 */
package seeds

import (
	"gorm.io/gorm"
	"huanteng/vendors/crypto/gbcrypt"
	"huanteng/web/models"
)

func SeedAdmin(db *gorm.DB)  {

	pwd,_:=gbcrypt.GeneratePassWd("123321")
	admin:=models.Admin{
		Name:"admin",
		Pwd:pwd,
		Avatar:"/resources/img/head_go.jpg",
	}
	db.Create(&admin)

}
